package com.yomahub.liteflow.example.xstream;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: liteflow-example
 * @description:
 * @author: yyyyjinying
 * @create: 2023-09-25 18:03
 **/
public class Blog {
    /**
     * <writer>
     *     <name>Guilherme Silveira</name>
     *   </writer>
     *   change the name of the writer tag
     *   xstream.aliasField("author", Blog.class, "writer");
     *   <author>
     *     <name>Guilherme Silveira</name>
     *   </author>
     */
    private Author writer;
    private List entries = new ArrayList();

    public Blog(Author writer) {
        this.writer = writer;
    }

    public void add(Entry entry) {
        entries.add(entry);
    }

    public List getContent() {
        return entries;
    }
}
